//
//  HWRechargeVIPModel.m
//  嗨文
//
//  Created by 响当当 on 2019/3/25.
//  Copyright © 2019年 dongzheng. All rights reserved.
//

#import "HWRechargeVIPModel.h"

@implementation HWRechargeVIPModel
- (id)initWithDic:(NSDictionary *)dic
{
    if (self = [super init])
    {
        self.vipDueTime = [[NSString stringWithFormat:@"%@",dic[@"vipDueTime"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"vipDueTime"]] :@"";
        self.headImg = [dic[@"headImg"] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"headImg"]] :@"";
        self.nickName = [[NSString stringWithFormat:@"%@",dic[@"nickName"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"nickName"]] :@"";
        self.vipMonth = [[NSString stringWithFormat:@"%@",dic[@"vipMonth"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"vipMonth"]] :@"";
        self.userId = [[NSString stringWithFormat:@"%@",dic[@"userId"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"userId"]] :@"";
        self.isVip = [[NSString stringWithFormat:@"%@",dic[@"isVip"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"isVip"]] :@"";
        self.goodsList = [dic[@"goodsList"] isValidArray] ? dic[@"goodsList"] : [NSArray array];

    }
    return self;
}
@end
